package com.paw.common.enums;

import lombok.Getter;

/**
 * @author Rubble
 * @date 2021/8/14
 **/
@Getter
public enum ErrorShowTypeEnum {

  /**
   * enum ErrorShowType {
   *   SILENT = 0, // 不提示错误
   *   WARN_MESSAGE = 1, // 警告信息提示
   *   ERROR_MESSAGE = 2, // 错误信息提示
   *   NOTIFICATION = 4, // 通知提示
   *   REDIRECT = 9, // 页面跳转
   * }
   */
  SILENT(0,"不提示错误"),
  WARN_MESSAGE(1,"警告信息提示"),
  ERROR_MESSAGE(2,"错误信息提示"),
  NOTIFICATION(4,"通知提示"),
  REDIRECT(9,"页面跳转");

  int code;

  String desc;

  ErrorShowTypeEnum (int code, String desc) {
    this.code = code;
    this.desc = desc;
  }
}
